package com.gaga.metadata.entity.database;

import com.gaga.metadata.entity.base.BaseOption;
import com.gaga.metadata.entity.base.BaseStringQuery;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * DataBaseOption
 *
 * @author liujia
 * @version 1.0
 * @date 2022/12/1 14:21
 */
@Data
public class DataBaseOption extends BaseOption implements Serializable {

    /**
     * 实现方式类型 1 代表filters 2代表新版本实现 stringQuery
     */
    private int type = 1;
    /**
     * case when的过滤条件列表
     */
    private List<DataBaseFilter> filters;


    /**
     * 针对F_ ORDER_的新版本实现
     */
    private BaseStringQuery stringQuery;

    /**
     * composes
     */
    private List<DataBaseOptionComposes> composes;
}